package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.entity.Result;
import com.itheima.pojo.OrderManage;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

/**
 * 体检预约服务接口
 */
public interface OrderService {

    //体检预约
    public Result order(Map map) throws Exception;

    //根据id查询预约信息，包括体检人信息、套餐信息
    public Map findById(Integer id) throws Exception;
    //根据id查询预约信息，包括体检人信息、套餐信息
    public Map findOrderById(Integer id) throws Exception;

    //分页查询
    PageInfo<OrderManage> findPage(Map map);
    //添加
    public Result add(Map map) throws Exception;

    List<Setmeal> findSetmealIdByOrderId(int id);

    void edit(Map map, Integer setmealId);

    void delete(Integer id);

    void changeStatus(Map map);
}
